package com.zjxf.controller.common;

import com.zjxf.utils.LoginUtil;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * @author ZhangWei
 * @date 2021/3/23/023 20:02
 */
@Controller
public class MappingController {

    @GetMapping(value = {"/", "/login.html","login"})
    public String login() {
        return "/login";
    }

    @GetMapping("loginOut")
    public String loginOut() {
        LoginUtil.loginOut();
        return "login";
    }

    @GetMapping(value = {"index"})
    public String index() {
        return "/index";
    }
}
